Changeset 9134 introduced a caching mechanism when xenbus_switch_state
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Sat, 11 Mar 2006 09:49:28 +0000 (10:49 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Sat, 11 Mar 2006 09:49:28 +0000 (10:49 +0100)
is invoked. This causes a problem in the resume part of a suspend-resume
cycle due to the backend not seeing that a state in the frontend was
set. This patch fixes this in the TPM frontend driver.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
linux-2.6-xen-sparse/drivers/xen/tpmfront/tpmfront.c

index 62e3d568a1befb848724218e76cf0fbddac4d73f..527a8f820180e9ca480a16c343a492ca9ccfaad7 100644 (file)
@@ -310,7 +310,8 @@ again:
                goto abort_transaction;
        }
 
-       err = xenbus_switch_state(dev, xbt, XenbusStateInitialised);
+       err = xenbus_printf(xbt, dev->nodename,
+                           "state", "%d", XenbusStateInitialised);
        if (err) {
                goto abort_transaction;
        }